package com.wu.company.entity;

// 采用工具 Hibernate Tools 3.2.4.GA (sinosoft version) 生成，请勿手工修改。

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 * POJO类utiplatconfigId
 */
@Embeddable
public class UtiplatconfigId implements java.io.Serializable {
	private static final long serialVersionUID = 1L;

	/** 属性系统代码 */
	private String systemCode;

	/** 属性paramcode */
	private String paramcode;

	/** 属性备注 */
	private String remark;

	/** 属性标志位 */
	private String flag;

	/**
	 * 类utiplatconfigId的默认构造方法
	 */
	public UtiplatconfigId() {
	}

	/**
	 * 属性系统代码的getter方法
	 */

	@Column(name = "SYSTEMCODE")
	public String getSystemCode() {
		return this.systemCode;
	}

	/**
	 * 属性系统代码的setter方法
	 */
	public void setSystemCode(String systemCode) {
		this.systemCode = systemCode;
	}

	/**
	 * 属性paramcode的getter方法
	 */

	@Column(name = "PARAMCODE")
	public String getParamcode() {
		return this.paramcode;
	}

	/**
	 * 属性paramcode的setter方法
	 */
	public void setParamcode(String paramcode) {
		this.paramcode = paramcode;
	}

	/**
	 * 属性备注的getter方法
	 */

	@Column(name = "REMARK")
	public String getRemark() {
		return this.remark;
	}

	/**
	 * 属性备注的setter方法
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**
	 * 属性标志位的getter方法
	 */

	@Column(name = "FLAG")
	public String getFlag() {
		return this.flag;
	}

	/**
	 * 属性标志位的setter方法
	 */
	public void setFlag(String flag) {
		this.flag = flag;
	}

	public boolean equals(Object other) {
		if ((this == other)) {
			return true;
		}
		if ((other == null)) {
			return false;
		}
		if (!(other instanceof UtiplatconfigId)) {
			return false;
		}
		UtiplatconfigId castOther = (UtiplatconfigId) other;

		return ((this.getSystemCode() == castOther.getSystemCode()) || (this
				.getSystemCode() != null && castOther.getSystemCode() != null && this
				.getSystemCode().equals(castOther.getSystemCode())))
				&& ((this.getParamcode() == castOther.getParamcode()) || (this
						.getParamcode() != null
						&& castOther.getParamcode() != null && this
						.getParamcode().equals(castOther.getParamcode())))
				&& ((this.getRemark() == castOther.getRemark()) || (this
						.getRemark() != null && castOther.getRemark() != null && this
						.getRemark().equals(castOther.getRemark())))
				&& ((this.getFlag() == castOther.getFlag()) || (this.getFlag() != null
						&& castOther.getFlag() != null && this.getFlag()
						.equals(castOther.getFlag())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getSystemCode() == null ? 0 : this.getSystemCode()
						.hashCode());
		result = 37 * result
				+ (getParamcode() == null ? 0 : this.getParamcode().hashCode());
		result = 37 * result
				+ (getRemark() == null ? 0 : this.getRemark().hashCode());
		result = 37 * result
				+ (getFlag() == null ? 0 : this.getFlag().hashCode());
		return result;
	}

}
